package com.zzz.profession.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zzz.common.RspResult;
import com.zzz.profession.dao.RProfessionMapper;
import com.zzz.profession.entity.RProfession;
import com.zzz.profession.service.IRProfessionService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Author
 * @since 2021-12-31
 */
@DubboService(version = "${dubbo.provider.IRProfessionService.version}")
@Service
public class RProfessionServiceImpl extends ServiceImpl<RProfessionMapper, RProfession> implements IRProfessionService {

    @Override
    public RspResult<Integer> insertRProfession(RProfession rProfession) {
        int res = this.baseMapper.insert(rProfession);
        return RspResult.ok(res);
    }
}
